package edu.yctc.weblog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import edu.yctc.weblog.entity.BlogTagDO;

@Mapper
public interface BlogTagDAO {

    void insert(BlogTagDO blogTagDO);

    void deleteById(Long id);

    void update(BlogTagDO blogTagDO);

    BlogTagDO getBlogTagDOById(Long id);

    BlogTagDO getBlogTagDOByBlogIdAndTagId(@Param("blogId") Long blogId, @Param("tagId") Long tagId);

    List<Long> getDistinctTagIds(Long[] tagIds);

    void batchInsert(@Param("blogTagDOList") List<BlogTagDO> blogTagDOList);

    void deleteByBlogId(Long blogId);

}